/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package instantmessengercpsc360.client;

import java.awt.Color;
import java.util.EventObject;

/**
 *
 * @author Aliceann
 */
public class MsgEvent extends EventObject{
    public MsgEvent(String message, String color)
    {
        super(message);
        msg = message;
        col = color;
    }
    
    public MsgEvent(String message)
    {
        super(message);
        msg = message;
        col = "black";
    }
    
   @Override
    public String getSource()
    {
        return (String)source;
    }
   
   public String getColor()
   {
       return col;
   }
    
    private String msg;
    private String col;
}
